package org.glow.changgou.goods.feign;

import org.glow.changgou.entity.Result;
import org.glow.changgou.goods.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Glow
 * @Date 2022-09-30 17:58:04
 * @Description
 * @Version 1.0
 */
@FeignClient(name="goods")
@RequestMapping(value = "/category")
public interface CategoryFeign {
    /**
     * 获取分类的对象信息
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    public Result<Category> findById(@PathVariable(name = "id") Integer id);
}
